package com.starter.es.common;

import lombok.Data;

/**
 * Description:检索参数
 */
@Data
public class QueryCommand {

  /**
   * 表名
   */
  String indexname;
  /**
   * 关键词
   */
  private String keyWords;
  /**
   * 搜索域
   */
  private String search_field;
  /**
   * 逻辑连接词
   */
  private String operator;
  /**
   * 排序
   */
  String sort;
  /**
   * 起始位置
   */
  private int start;
  /**
   * 返回条数
   */
  private int rows;
  /**
   * 返回字段
   */
  private String return_filed;

  private String startdate;

  private String enddate;
  /**
   * 聚集字段
   */
  private String aggsField;
  /**
   * 步长
   */
  private Integer step;
  /**
   * 滚动分页id
   */
  private String scrollid;

  @Override
  public String toString() {
    return "QueryCommand{" +
        "indexname='" + indexname + '\'' +
        ", keyWords='" + keyWords + '\'' +
        ", search_field='" + search_field + '\'' +
        ", operator='" + operator + '\'' +
        ", sort='" + sort + '\'' +
        ", start=" + start +
        ", rows=" + rows +
        ", return_filed='" + return_filed + '\'' +
        ", startdate='" + startdate + '\'' +
        ", enddate='" + enddate + '\'' +
        ", aggsField='" + aggsField + '\'' +
        ", step=" + step +
        ", scrollid='" + scrollid + '\'' +
        '}';
  }
}
